﻿using SX.BaseService.Service.Implement.Microservice.ViewModel;
using SX.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SX.BaseService.Service.Interface
{
    public interface IMicroService
    {
        Task<IApiResult> QueryApiGatewayConfiguration(GatewayConfigurationQueryModel model);
        Task<IApiResult> AddApiGatewayConfiguration(GatewayConfigurationAddModel model);
        Task<IApiResult> SyncApiGatewayConfigurationToConsul(string gatewayId);
        Task<IApiResult> SyncApiGatewayConfigurationToRedis(string gatewayId);
        Task<IApiResult> QueryApiGatewayReRouteList(GatewayReRouteQueryModel model);
        Task<IApiResult> AddApiGatewayReRoute(GatewayReRouteAddModel input);
    }
}
